package censorboty;


public class CensorWord {
	
	private String word;
	
	public CensorWord(String sw) {
		this.word=sw;
	}
	public String getWord() {
		return word;
	}
	public int wordLenght(){
		return word.length();
	}
	public String strHelper(){
		String str="";
		for(int i=0;i<wordLenght()-1;i++){
			str=str+"*";
		}
		return str;	
	}
	@Override
	public boolean equals(Object obj) {
		if(this.word.equals(((CensorWord)obj).word)){
			return true;
		}else{
			return false;
		}
	}
}
